package com.example.springbott.bean.kerbal;

import com.example.springbott.bean.MarketCategory;
import com.example.springbott.bean.silic.MarketCategoryVo;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;
    @NoArgsConstructor
    @Data
    public  class WxGoodsCategoryVo  {
        @JsonProperty("currentCategory")
        private MarketCategory currentCategory;
        @JsonProperty("brotherCategory")
        private List<MarketCategory> brotherCategory;
        @JsonProperty("parentCategory")
        private MarketCategoryVo parentCategory;

        @NoArgsConstructor
        @Data
        public static class CurrentCategoryDTO {
            @JsonProperty("id")
            private Integer id;
            @JsonProperty("name")
            private String name;
            @JsonProperty("keywords")
            private String keywords;
            @JsonProperty("desc")
            private String desc;
            @JsonProperty("pid")
            private Integer pid;
            @JsonProperty("iconUrl")
            private String iconUrl;
            @JsonProperty("picUrl")
            private String picUrl;
            @JsonProperty("level")
            private String level;
            @JsonProperty("sortOrder")
            private Integer sortOrder;
            @JsonProperty("addTime")
            private String addTime;
            @JsonProperty("updateTime")
            private String updateTime;
            @JsonProperty("deleted")
            private Boolean deleted;
        }

        @NoArgsConstructor
        @Data
        public static class ParentCategoryDTO {
            @JsonProperty("id")
            private Integer id;
            @JsonProperty("name")
            private String name;
            @JsonProperty("keywords")
            private String keywords;
            @JsonProperty("desc")
            private String desc;
            @JsonProperty("pid")
            private Integer pid;
            @JsonProperty("iconUrl")
            private String iconUrl;
            @JsonProperty("picUrl")
            private String picUrl;
            @JsonProperty("level")
            private String level;
            @JsonProperty("sortOrder")
            private Integer sortOrder;
            @JsonProperty("addTime")
            private String addTime;
            @JsonProperty("updateTime")
            private String updateTime;
            @JsonProperty("deleted")
            private Boolean deleted;
        }

        @NoArgsConstructor
        @Data
        public static class BrotherCategoryDTO {
            @JsonProperty("id")
            private Integer id;
            @JsonProperty("name")
            private String name;
            @JsonProperty("keywords")
            private String keywords;
            @JsonProperty("desc")
            private String desc;
            @JsonProperty("pid")
            private Integer pid;
            @JsonProperty("iconUrl")
            private String iconUrl;
            @JsonProperty("picUrl")
            private String picUrl;
            @JsonProperty("level")
            private String level;
            @JsonProperty("sortOrder")
            private Integer sortOrder;
            @JsonProperty("addTime")
            private String addTime;
            @JsonProperty("updateTime")
            private String updateTime;
            @JsonProperty("deleted")
            private Boolean deleted;
        }
    }

